/* Researchopia Preferences Styles */

.researchopia-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  margin: 4px;
}

.researchopia-btn:hover {
  background: #e9ecef;
}

.researchopia-btn.primary {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.researchopia-btn.primary:hover {
  background: #0056b3;
}

.researchopia-btn.secondary {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.researchopia-btn.secondary:hover {
  background: #545b62;
}

.researchopia-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-status {
  padding: 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin: 8px 0;
}

.login-form h3 {
  margin-top: 0;
  color: #495057;
}

.login-description {
  color: #6c757d;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"] {
  width: 250px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group label {
  min-width: 65px;
  text-align: left;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-options {
  margin: 12px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-loading {
  color: #6c757d;
}

.message {
  padding: 12px;
  border-radius: 4px;
  margin: 12px 0;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.help-links {
  margin-top: 12px;
  text-align: center;
}

.help-links a {
  color: #007bff;
  text-decoration: none;
}

.help-links a:hover {
  text-decoration: underline;
}

.logged-in {
  background: #d4edda;
  padding: 16px;
  border-radius: 6px;
}

.user-info {
  margin-bottom: 12px;
}

.user-email {
  font-weight: 500;
  color: #155724;
}

.login-time {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.user-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.logged-in-status {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 16px;
}

.logged-in-status h3 {
  margin-top: 0;
  color: #155724;
}

.user-details {
  margin-bottom: 16px;
}

.user-details > div {
  margin-bottom: 8px;
}

.user-details strong {
  color: #495057;
  min-width: 80px;
  display: inline-block;
}

.researchopia-btn.danger {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.researchopia-btn.danger:hover {
  background: #c82333;
  border-color: #bd2130;
}